package com.example.property.api

import com.example.common.api.BaseApiServer
import com.example.common.entity.BaseResultEntity
import com.example.network.BaseResponse
import com.example.property.entity.CarApplyResultEntity
import com.example.property.entity.CarColorResultEntity
import com.example.property.entity.ParkApplyResultEntity
import okhttp3.MultipartBody
import okhttp3.RequestBody
import retrofit2.http.Body
import retrofit2.http.Multipart
import retrofit2.http.POST
import retrofit2.http.Part

/**
 *
 * 物业管理Api
 * **/
interface PropertyApiServer :BaseApiServer {
    @POST("/sysParking/selParking")
    suspend fun getParkingList():CarApplyResultEntity

    @POST("/sysApply/selAllApply")
    suspend fun getParkApplyList(@Body body :RequestBody):ParkApplyResultEntity
    //获取车辆颜色信息
    @POST("/sysColor/selColor")
    suspend fun getCarColor():CarColorResultEntity

    //上传车辆图片
    @Multipart
    @POST("fileUpload")
    suspend fun  uploadCarImages(@Part list: MutableList<MultipartBody.Part>): BaseResultEntity

    @POST("/sysCar/addCar")
    suspend fun addCar(@Body body: RequestBody)

    @POST("sysCar/addCarImg")
    suspend fun addCarImages(@Body body: RequestBody)

    //提交车辆申请
    @POST("/sysParking/applyParking")
    suspend fun addParkApply(@Body body: RequestBody)


}